package model

import (
	"github.com/shopspring/decimal"
)

type ShopFirstTrafficTrend struct {
	ID   map[string]interface{} `json:"_id" bson:"_id"`
	Name string                 `json:"name" bson:"name"`
	Val  int                    `json:"val" bson:"val"`
}

type ShopSecondTrafficRank struct {
	ID map[string]uint `json:"_id" bson:"_id"`
	//Date             time.Time       `json:"date" bson:"type:date;date"`
	Source           *TrafficMeta    `json:"source" bson:"source"`
	OrderUv          int             `json:"order_uv" bson:"order_uv"`
	ItemCartUv       int             `json:"item_cart_uv" bson:"item_cart_uv"`
	CtmItemClickPv   int             `json:"ctm_item_click_pv" bson:"ctm_item_click_pv"`
	CtmItemClickUv   int             `json:"ctm_item_click_uv" bson:"ctm_item_click_uv"`
	ItemCartPv       int             `json:"item_cart_pv" bson:"item_cart_pv"`
	ItemOrderUsd     float64         `json:"item_order_usd" bson:"item_order_usd"`
	ItemOrderCnt     int             `json:"item_order_cnt" bson:"item_order_cnt"`
	ItemCartCnt      int             `json:"item_cart_cnt" bson:"item_cart_cnt"`
	CtmOrderViewRate decimal.Decimal `json:"ctm_order_view_rate" bson:"ctm_order_view_rate"`
}
